package com.delivery.deliverysystem.service;

import com.delivery.deliverysystem.exception.RException;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;

public interface CommonService {

    /**
     * 上传图片到文件夹中
     * @param file
     * @return 图片相对路径
     */
    String uploadFile(MultipartFile file,String uploadFolder) throws RException;

    boolean deleteFile(String filePath) throws RException, IOException;

}
